
package com.insigma.business.qrcode.common.dao;

import com.insigma.business.qrcode.common.annotation.Crypt;
import com.insigma.business.qrcode.common.dto.CommonRepresentationRecordBSearcher;
import com.insigma.business.qrcode.common.dto.CommonRepresentationRecordDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommonRepresentationRecordDao {

    
    List<CommonRepresentationRecordDO> search(final CommonRepresentationRecordBSearcher innerSearcher);

    
    CommonRepresentationRecordDO get(final String id);

    
    Integer insert(final CommonRepresentationRecordDO commonRepresentationRecordDO);

    
    Integer update(final CommonRepresentationRecordDO commonRepresentationRecordDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    @Crypt(encryptParamIndex = {0})
    List<CommonRepresentationRecordDO> listByIdCardNoAndType(@Param("idCardNo")String idCardNo, @Param("type")String type);
}
